package com.common.sdk.net.download.interfaces;

import com.common.sdk.net.download.callback.error.DownloadState;

public interface IDownloadResponseListener {

    /**
     * 下载数据添加成功
     * 
     * @param notNullData
     * @param isCache
     */
    public void onSuccess(Object notNullData, boolean isCache);

    /**
     * 下载数据添加失败
     * 
     * @param errorCode
     */
    public void onFailure(DownloadState errorCode);
}
